From e174ae3bdfc1884c904da633fbb4bca706aa583e Mon Sep 17 00:00:00 2001 From: dgellow Date: Wed, 25 Jan 2017 18:25:41 +0100 Subject: [PATCH] When an error occured in a JobQueue print it directly --- src/cargo/ops/cargo_rustc/job_queue.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/cargo/ops/cargo_rustc/job_queue.rs b/src/cargo/ops/cargo_rustc/job_queue.rs index e40c82922..a72b6e1f9 100644 --- a/src/cargo/ops/cargo_rustc/job_queue.rs +++ b/src/cargo/ops/cargo_rustc/job_queue.rs @@ -9,7 +9,7 @@ use term::color::YELLOW; use core::{PackageId, Target, Profile}; use util::{Config, DependencyQueue, Fresh, Dirty, Freshness}; -use util::{CargoResult, ProcessBuilder, profile, internal}; +use util::{CargoResult, ProcessBuilder, profile, internal, human}; use super::{Context, Kind, Unit}; use super::job::Job; @@ -181,13 +181,14 @@ impl<'a> JobQueue<'a> { match result { Ok(()) => self.finish(key, cx)?, Err(e) => { + cx.config.shell().error(format!("{}", e))?; if self.active > 0 { cx.config.shell().say( "Build failed, waiting for other \ jobs to finish...", YELLOW)?; } if error.is_none() { - error = Some(e); + error = Some(human("build failed")); } } } -- 2.30.2